package com.liruo.treasureattic.common.util;

/**
 * @Author:liruo
 * @Date:2022-11-17-17:01:37
 * @Desc
 */
public class RegexUtil {
    /**
     * 英文和数字
     */
    public static final String PASSWORD = "^[A-Za-z0-9]+$";
    /**
     * 中文、英文、数字包括下划线
     */
    public static final String USERNAME = "^[\\u4E00-\\u9FA5\\w]+$";
    public static final String COMMON_NAME = "^[-\\u4E00-\\u9FA5\\w]+$";
    public static final String EMAIL = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(?:\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$";
    public static final String MOBILE = "^(?:(?:\\+|00)86)?1(?:(?:3[\\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[189]))\\d{8}$";
}
